package com.lyw.dubbo.controller;


import com.lyw.dubbo.service.OrderService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.io.IOException;

public class ClientApplication {

    @SuppressWarnings("resource")
    public static void main(String[] args) throws IOException {
        ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext("client.xml");

        OrderService orderService = applicationContext.getBean(OrderService.class);

        orderService.initOrder(1);

        System.out.println("调用结束");
        System.in.read();
    }
}
